package org.footballmanager.pandafootball.system.service;

import org.footballmanager.pandafootball.system.domain.FootFormation;
import org.footballmanager.pandafootball.system.form.impl.FootFormationSearchForm;
import org.springframework.ui.Model;

import javax.servlet.http.HttpServletRequest;

public interface FootFormationService extends BaseService<FootFormation> {
    /**
     * 查询
     *
     * @param entityname              实体类名
     * @param map                     参数
     * @param footFormationSearchForm 条件
     */
    void search(String entityname, Model map, FootFormationSearchForm footFormationSearchForm);

    /**
     * 删除所有
     *
     * @param footFormationSearchForm 条件
     * @param request                 请求
     */
    void deleteAll(FootFormationSearchForm footFormationSearchForm, HttpServletRequest request);

    /**
     * 获取默认阵型
     *
     * @return 阵型主键
     */
    Long getDefaultFormation();
}